package com.rentplant.mapper;

import com.alibaba.fastjson.JSONObject;
import com.rentplant.Pojo.afterservice;
import com.rentplant.Pojo.serviceandorderanditem;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper  //申明作为底层交互
@Repository
public interface afterServiceMapper {

    //查找用户售后服务订单
    public List<serviceandorderanditem> afterService(JSONObject serviceinfo);



    //提交售后申请
    public boolean addAfterService(JSONObject serviceinfo);

    //查询该订单是否有售后申请
    public  List<afterservice> selectAfterService(JSONObject serviceinfo);



//    申请管理
//    查询全部申请并分页
    public List<afterservice> allApply(JSONObject pageinfo);

    //    查询全部申请
    public List<afterservice> allApplys();

//    不同意售后申请
    public boolean refuseApply(JSONObject applyinfo);

//    按条件查找
    public List<afterservice> searchAfter(JSONObject searchinfo);

    //    按条件查找
    public List<afterservice> searchAfters(JSONObject searchinfo);

}
